<!DOCTYPE html>{{ $baseUrl := .Site.BaseURL }}{{ $isHomePage := eq .URL "/" }}
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">{{ if .Keywords }}
        <meta name="keywords" content="{{ delimit .Keywords ", "}}">{{ else if $isHomePage }}
        <meta name="keywords" content="{{ .Site.Params.Keywords }}">{{ end }}{{ if $isHomePage }}
        <meta name="description" content="{{ .Site.Params.Description }}">{{ else }}
        <meta name="description" content="{{ if .Description }}{{ .Description }}{{ else if .IsPage }}{{ .Summary }}{{ else }}{{ .Title }}{{ end }}">{{ end }}
        <link rel="alternate" href="/feed.xml" type="application/rss+xml" title="{{ .Site.Title }}">
        <link rel="icon" href="{{ $baseUrl }}/favicon.ico">{{ if $isHomePage }}
        <title>{{ .Title }} </title>{{ else if eq .URL "/post/" }}
        <title>文章列表 - {{ .Site.Title }}</title>{{ else if eq .URL "/theme/" }}
        <title>开源项目 - {{ .Site.Title }}</title>{{ else if eq .URL "/showcase/" }}
        <title>免费资源 - {{ .Site.Title }}</title>{{ else }}
        <title>{{ .Title }} - {{ .Site.Title }}</title>{{ end }}
        <link rel="stylesheet" href="{{ $baseUrl }}/css/highlight.js.min.css">
        <link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap.min.css">
        <link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap-theme.css">
        <link rel="stylesheet" href="{{ $baseUrl }}/css/font-awesome/css/font-awesome.min.css" />
        {{ if or (eq .URL "/theme/") (eq .Section "theme") }}<link rel="stylesheet" href="{{ $baseUrl }}/css/theme.css">{{ end }}
        <link rel="stylesheet" href="{{ $baseUrl }}/css/hugo-org.css">
        <!-- 不蒜子 -->
        <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    </head>

<body role="document">
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{{ $baseUrl }}/">{{ .Site.Title }}</a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    {{ $url := .URL}}
                    <li {{ if eq $isHomePage true }}class="active"{{ end }}><a href="{{ $baseUrl }}/">主页</a></li>
                    {{ range .Site.Menus.home}}
                    <li {{ if eq $url .URL }}class="active"{{ end }}><a href="{{ .URL }}">{{ .Name }}</a></li>
                    {{ end }}

                </ul>
            </div>
        </div>
    </nav>

